package com.csnf.controller;

import com.csnf.dto.ResponseObject;
import com.csnf.entity.MerchantAccount;
import com.csnf.service.RegisterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class RegisterController {
    @Autowired
    private RegisterService registerService;
    @RequestMapping("/register")
    public ResponseObject register(@RequestBody MerchantAccount merchantAccount){
        merchantAccount.setIsExamine(0);
        int flag = registerService.register(merchantAccount);
        return null;
    }
}
